package com.xmbandu.app.bean;

import com.google.gson.Gson;

import java.util.List;

/**
 * Created by wmq on 2019/4/25.
 */

public class BookListResultBean {
    public static BookListResultBean objectFromData(String str) {

        return new Gson().fromJson(str, BookListResultBean.class);
    }

        /**
         * list : [{"id":31,"name":"滴答滴答下雨了","photo":"https://phu.qiniu.everobo.com/activity1003.png","type":1,"created_time":"2019-10-12 10:11:12","del":0},{"id":4,"name":"滴答滴答下雨了","photo":"https://phu.qiniu.everobo.com/activity1003.png","type":1,"created_time":"2019-10-12 10:11:12","del":0},{"id":3,"name":"滴答滴答下雨了3","photo":"https://phu.qiniu.everobo.com/activity1003.png","type":1,"created_time":"2019-10-12 10:11:12","del":0},{"id":2,"name":"滴答滴答下雨了2","photo":"https://phu.qiniu.everobo.com/activity1003.png","type":1,"created_time":"2019-10-12 10:11:12","del":0},{"id":1,"name":"滴答滴答下雨了1","photo":"https://phu.qiniu.everobo.com/activity1003.png","type":1,"created_time":"2019-10-12 10:11:12","del":0}]
         * page : 2
         */

        private int page;
        private List<ListBean> list;

        public int getPage() {
            return page;
        }

        public void setPage(int page) {
            this.page = page;
        }

        public List<ListBean> getList() {
            return list;
        }

        public void setList(List<ListBean> list) {
            this.list = list;
        }

        public static class ListBean {
            /**
             * id : 31
             * name : 滴答滴答下雨了
             * photo : https://phu.qiniu.everobo.com/activity1003.png
             * type : 1
             * created_time : 2019-10-12 10:11:12
             * del : 0
             */

            private int id;
            private String name;
            private String photo;
            private int type;
            private String created_time;
            private int del;

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public String getPhoto() {
                return photo;
            }

            public void setPhoto(String photo) {
                this.photo = photo;
            }

            public int getType() {
                return type;
            }

            public void setType(int type) {
                this.type = type;
            }

            public String getCreated_time() {
                return created_time;
            }

            public void setCreated_time(String created_time) {
                this.created_time = created_time;
            }

            public int getDel() {
                return del;
            }

            public void setDel(int del) {
                this.del = del;
            }
        }
}
